Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong return code if only a single violation found #4

Merged
merged 1 commit into from
Apr 15, 2018
Merged

wrong return code if only a single violation found #4

merged 1 commit into from
Apr 15, 2018

Conversation

ghiculescu
Copy link
Collaborator

@ghiculescu ghiculescu commented Apr 14, 2018

if only a single violation was found, eg:

========== Running: bundle exec rails-route-checker
The following 1 url and path methods don't correspond to any route.
- app/views/time_off_mailer/_entry.html.haml:40 - call to entry_calendar_url
========== Finished in 29.68s: bundle exec rails-route-checker

issues? would return false, when it should have returned true. 2 or more violations give the expected outcome:

========== Running: bundle exec rails-route-checker
The following 2 url and path methods don't correspond to any route.
- app/views/time_off_mailer/_entry.html.haml:43 - call to entry_calendar_url
- app/views/time_off_mailer/_entry.html.haml:45 - call to entry_calendar_url
========== Errored after 19.24s: bundle exec rails-route-checker

if only a single violation was found, eg:

```
========== Running: bundle exec rails-route-checker
The following 1 url and path methods don't correspond to any route.
- app/views/time_off_mailer/_entry.html.haml:40 - call to entry_calendar_url
========== Finished in 29.68s: bundle exec rails-route-checker
```

`issues?` would return `false`, when it should have returned `true`
Copy link
Owner

@daveallie daveallie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ Thanks

@daveallie daveallie merged commit d1af10c into daveallie:master Apr 15, 2018
daveallie added a commit that referenced this pull request Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants